﻿namespace StateDemo
{
    internal class MobilePhoneContext
    {
        IMobilePhoneState state;
        public MobilePhoneContext()
        {
            state = new LockedScreeState();
        }
        public void ChangeState(IMobilePhoneState state)
        {
            this.state = state;
        }
        public void PressHomeButton()
        {
            state.PressHomeButton();
        }
    }
}
